aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapsho...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-15 15:31:04 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-15 15:31:04 +0000
commit549ec911f67484c875a09d4b5b8a9a4fc0ecc806 (patch)
tree1940d5adcdb5db95712d8edcbd924cd436b21fb3 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parenta2d7af1fdcc64f117d5db91761cb2610854e9e60 (diff)
Store Patio ints as pointers
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected11
1 files changed, 10 insertions, 1 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index 40131cb3..d41b1648 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -23,6 +23,7 @@ Locals:
* (val "tmp__0" int)
* (val "effectHandler__0" data-ptr)
* (val "int__0" int)
+ * (val "intPointer__0" data-ptr)
* (val "tmp__1" int)
Instructions:
@@ -51,7 +52,15 @@ Instructions:
(
block
(
- (local-store (local "int__0") (int 42))
+ (alloc-heap (local "intPointer__0") (struct (int)))
+ (
+ memory-store
+ pointer=(local "intPointer__0")
+ layout=(struct (int))
+ offset=(0)
+ value=(int 42)
+ )
+ (data-ptr-to-int (local "int__0") (local "intPointer__0"))
(call _ "shed__runtime__effects_pop_handler" ())
)
results=((local "int__0"))